package com.kexin.abuwxapi;

import com.kexin.abuwx.domain.AbucoderVideo;
import com.kexin.abuwx.service.IAbucoderVideoService;
import com.kexin.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * author：AbuCoder QQ:932696181
 * 微信小程序获取轮播图接口
 * Gitee:https://gitee.com/rahman
 */
@RestController
@RequestMapping("/wxapi")
public class WxVideoController {

    @Autowired
    IAbucoderVideoService iAbucoderVideoService;
    @GetMapping("/loadVideo")
    public AjaxResult loadVideo(AbucoderVideo abucoderVideo){
        List<AbucoderVideo> videolist = iAbucoderVideoService.selectAbucoderVideoList(abucoderVideo);
        return AjaxResult.success(videolist);
    }
}